Skip to content

Fix error when pdf is generated on Mac#7

Merged
Diphendara merged 1 commit into
Diphendara:mainfrom
fmolinagomez:main
Jun 22, 2026
Merged

Fix error when pdf is generated on Mac#7
Diphendara merged 1 commit into
Diphendara:mainfrom
fmolinagomez:main

Conversation

@fmolinagomez

Copy link
Copy Markdown
Contributor

Traceback (most recent call last):
File "./MPCFillToPDF/.venv/lib/python3.12/site-packages/plyer/utils.py", line 96, in _ensure_obj
mod = import(module, fromlist='.')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "./MPCFillToPDF/.venv/lib/python3.12/site-packages/plyer/platforms/macosx/notification.py", line 7, in
from pyobjus import (
ModuleNotFoundError: No module named 'pyobjus'

Updating notifications, adding an if-else clause with an specific import for Mac devices

Traceback (most recent call last):
  File "./MPCFillToPDF/.venv/lib/python3.12/site-packages/plyer/utils.py", line 96, in _ensure_obj
    mod = __import__(module, fromlist='.')
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "./MPCFillToPDF/.venv/lib/python3.12/site-packages/plyer/platforms/macosx/notification.py", line 7, in <module>
    from pyobjus import (
ModuleNotFoundError: No module named 'pyobjus'

on Mac
@Diphendara Diphendara merged commit 27d0f52 into Diphendara:main Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants